<!-- 用户列表 -->
<style>
	th {
		text-align: center;
	}
	
	.table>tbody>tr>td {
		line-height: 60px;
		text-align: center;
		height: 50px;
		margin: 0px;
	}
</style>
<div id="data_page" class="in_page">
	
		<div class="panel panel-default">
			<div class="panel-body">
				<form class="form-inline" method="get" name="keyword" id="keyword" action="{:U('Repairs/index')}">
					<!--<div class="form-group">
			<input type="text" class="form-control" id="exampleInputName2" name="keyword" placeholder="预约人">
					</div>-->
					 <button type="submit" class="btn btn-sm btn-default">搜索</button>
					<a href="{:U('Repairs/index')}?status=1"> <button type="button" class="btn btn-sm btn-primary">查看已处理</button></a>
				</form>
			</div>
		</div>
		
	<table class="table table-striped table-bordered table-condensed  ">
		<thead>
			<tr>
				<th>报修人</th>
				
				<th>手机号</th>
				<th>地址</th>
				<th>内容</th>
				<th>报修时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="repairList" id="data">
				<tr>
					<td>{$data.name}</td>
					<td>{$data.phone}</td>
					<td>{$data.address}</td>
					<td >{$data.content}</td>
					<td><?php echo date('Y-m-d H:i:s',$data['ctime'])?></td>
					<td style="text-align: center;	">
					<if condition="$data.status eq 0">
						<a href="{:U('Repairs/upstatus')}?id={$data.id}">
					<button type="submit" class="btn btn-sm btn-danger">点击处理</button>
						</a>
					<else/>
						已处理
					</if>
					</td>
					
				</tr>
			</volist>
		</tbody>
	</table>
</div>
<div>{$page}</div>
